# $Id: PKGBUILD 86710 2013-03-21 10:54:23Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-tie-cphash
pkgver=1.05
pkgrel=1
pkgdesc="Perl/CPAN Module Tie::CPHash : Case preserving but case insensitive hash"
arch=("any")
url="http://search.cpan.org/dist/Tie-CPHash"
license=("GPL" "PerlArtistic")
depends=('perl')
source=("http://www.cpan.org/authors/id/C/CJ/CJM/Tie-CPHash-$pkgver.tar.gz")
md5sums=('2d71103208922b0305adfd50bc2f1736')

build() {
  cd $srcdir/Tie-CPHash-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd $srcdir/Tie-CPHash-$pkgver
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
